package org.vectrics.common.html.email;

import org.apache.ecs.html.A;
import org.apache.ecs.html.Font;
import org.apache.ecs.html.P;

public class HtmlEmailHelper {

	public HtmlEmailHelper() {
		super();
	}

	private String getStandardFontStyle() {
		return("font:normal 0.7em Verdana");
	}

	private String getStandardBoldFontStyle() {
		return("font:bold 0.7em Verdana");
	}

	private String getSmallFontStyle() {
		return("font:normal 0.6em Verdana");
	}

	private String getSmallBoldFontStyle() {
		return("font:bold 0.6em Verdana");
	}
	
	public Font getStandardFont(String caption) {
		Font font = new Font();
		font.setStyle(this.getStandardFontStyle());
		font.addElement(caption);
		return(font);
	}

	public P getStandardParagraph(String caption) {
		P p = new P();
		p.setStyle(this.getStandardFontStyle());
		p.addElement(caption);
		return(p);
	}

	public A getStandardLink(String caption, String href) {
		A a = new A();
		a.setStyle(this.getStandardFontStyle());
		a.addElement(caption);
		a.setHref(href);
		return(a);
	}
	
	public Font getSmallFont(String caption) {
		Font font = new Font();
		font.setStyle(this.getSmallFontStyle());
		font.addElement(caption);
		return(font);
	}

	public P getSmallParagraph(String caption) {
		P p = new P();
		p.setStyle(this.getSmallFontStyle());
		p.addElement(caption);
		return(p);
	}

	public A getSmallLink(String caption, String href) {
		A a = new A();
		a.setStyle(this.getSmallFontStyle());
		a.addElement(caption);
		a.setHref(href);
		return(a);
	}
	

}
